\doxysection{Log.\+h}
\hypertarget{_log_8h_source}{}\label{_log_8h_source}\index{Log/Header/Component/Log.h@{Log/Header/Component/Log.h}}
\mbox{\hyperlink{_log_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#ifndef\ LOGGER\_LOG\_H}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ LOGGER\_LOG\_H}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00014\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_log}{Log}}\ \{}
\DoxyCodeLine{00015\ }
\DoxyCodeLine{00016\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00017\ }
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keyword}{enum\ class}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196e}{LogLevel}}\ \{}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba}{Debug}}\ =\ 0,}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875}{Info}},}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa}{Warning}},}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd}{Error}},}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4}{Fatal}}}
\DoxyCodeLine{00025\ \ \ \ \ \};}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00028\ \ \ \ \ \textcolor{keyword}{enum\ class}\ \mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4}{Output}}\ \{}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4abccaa4aa80831b76c11240a16447975f}{Console}}\ =\ 0,}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4a0b27918290ff5323bea1e3b78a9cf04e}{File}}}
\DoxyCodeLine{00031\ \ \ \ \ \};}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \ \ \ \ \mbox{\hyperlink{class_log_ad28be861570fb4e253648f2ed523baa9}{Log}}(\mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4}{Output}}\ \&\mbox{\hyperlink{class_log_a3311673c7e559b49468f6b664d09a2c7}{mOutput}},\ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_adbf2ffa57feb201908fcb5ee996e78f3}{mContent}},\ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_ac191fc86e9c16bf815adcf20dd5d82ca}{mFileName}},}
\DoxyCodeLine{00034\ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_a4a3c02e802734b1690fddddec43f75ec}{mPath}})}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ \ \ \ \ :\ \mbox{\hyperlink{class_log_a3311673c7e559b49468f6b664d09a2c7}{mOutput}}(\mbox{\hyperlink{class_log_a3311673c7e559b49468f6b664d09a2c7}{mOutput}}),\ \mbox{\hyperlink{class_log_adbf2ffa57feb201908fcb5ee996e78f3}{mContent}}(\mbox{\hyperlink{class_log_adbf2ffa57feb201908fcb5ee996e78f3}{mContent}}),\ \mbox{\hyperlink{class_log_ac191fc86e9c16bf815adcf20dd5d82ca}{mFileName}}(\mbox{\hyperlink{class_log_ac191fc86e9c16bf815adcf20dd5d82ca}{mFileName}}),\ \mbox{\hyperlink{class_log_a4a3c02e802734b1690fddddec43f75ec}{mPath}}(\mbox{\hyperlink{class_log_a4a3c02e802734b1690fddddec43f75ec}{mPath}})\ \{\}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00038\ \ \ \ \ \mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4}{Output}}\ \mbox{\hyperlink{class_log_a83ced3082600d5caaa3c6b2def9db8ff}{getMOutput}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{class_log_a3311673c7e559b49468f6b664d09a2c7}{mOutput}};\ \}}
\DoxyCodeLine{00040\ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_a36b2571070b6dfaccf717f6088c37bd1}{getMContent}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{class_log_adbf2ffa57feb201908fcb5ee996e78f3}{mContent}};\ \}}
\DoxyCodeLine{00042\ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_a6100d34b345726bd7cdd1419b6a9ff48}{getMFileName}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{class_log_ac191fc86e9c16bf815adcf20dd5d82ca}{mFileName}};\ \}}
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{const}\ std::string\ \&\mbox{\hyperlink{class_log_a0f74536afad04a76876dcfb6c6b37cde}{getMPath}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{class_log_a4a3c02e802734b1690fddddec43f75ec}{mPath}};\ \}}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \ \ \ \ \textcolor{keyword}{static}\ std::string\ \mbox{\hyperlink{class_log_ac9147a9cca514b1a8d3d064859ea4c77}{levelToString}}(\mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196e}{Log::LogLevel}}\ \&level)\ \{}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{switch}\ (level)\ \{}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196eaa603905470e2a5b8c13e96b579ef0dba}{Log::LogLevel::Debug}}:}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Debug"{}};}
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea4059b0251f66a18cb56f544728796875}{Log::LogLevel::Info}}:}
\DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Info"{}};}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea0eaadb4fcb48a0a0ed7bc9868be9fbaa}{Log::LogLevel::Warning}}:}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Warning"{}};}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea902b0d55fddef6f8d651fe1035b7d4bd}{Log::LogLevel::Error}}:}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Error"{}};}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \mbox{\hyperlink{class_log_a3718f3e276c3d3e23b58a3b8236d196ea882384ec38ce8d9582b57e70861730e4}{Log::LogLevel::Fatal}}:}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Fatal"{}};}
\DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{default}:}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Undefined"{}};}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00061\ \ \ \ \ \}}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00064\ \ \ \ \ \mbox{\hyperlink{class_log_ae9a5b0a1962f5076860bde2221f8e9e4}{Output}}\ \mbox{\hyperlink{class_log_a3311673c7e559b49468f6b664d09a2c7}{mOutput}};}
\DoxyCodeLine{00065\ \ \ \ \ std::string\ \mbox{\hyperlink{class_log_adbf2ffa57feb201908fcb5ee996e78f3}{mContent}};}
\DoxyCodeLine{00066\ \ \ \ \ std::string\ \mbox{\hyperlink{class_log_ac191fc86e9c16bf815adcf20dd5d82ca}{mFileName}};}
\DoxyCodeLine{00067\ \ \ \ \ std::string\ \mbox{\hyperlink{class_log_a4a3c02e802734b1690fddddec43f75ec}{mPath}};}
\DoxyCodeLine{00068\ \};}
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//LOGGER\_LOG\_H}}

\end{DoxyCode}
